package com.cloudfast.utils.word;

/**
 * word 替换的图片信息
 *
 * @author liuyw
 */
public class WordImage {

    private int width;

    private int height;

    private String type = "jpg";

    private String filePath;

    private byte[] imageByte;

    /**
     * 是否远程(sftp/ftp)下载
     */
    private boolean remote = true;

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    @SuppressWarnings("unused")
    private WordImage() {
    }

    /**
     * @param width    图片宽
     * @param height   高
     * @param type     图片类型 jpg/png/jpeg
     * @param filePath 存放的位置(相对位置)
     */
    public WordImage(int width, int height, String type, String filePath) {
        super();
        this.width = width;
        this.height = height;
        this.type = type;
        this.filePath = filePath;
    }

    public WordImage(int width, int height, String type, String filePath, boolean remote) {
        super();
        this.width = width;
        this.height = height;
        this.type = type;
        this.filePath = filePath;
        this.remote = remote;
    }

    public byte[] getImageByte() {
        return imageByte;
    }

    public void setImageByte(byte[] imageByte) {
        this.imageByte = imageByte;
    }

    public boolean isRemote() {
        return remote;
    }

    public void setRemote(boolean remote) {
        this.remote = remote;
    }

}
